﻿export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',

    routes: [
      {
        name: '用户登录',
        path: '/user/login',
        component: './user/login',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [
          {
            path: '/',
            redirect: '/account/user_data',
          },
          // {
          //   path: '/home',
          //   name: '首页',
          //   icon: 'CopyOutlined',
          //   component: './Admin',
          // },
          {
            path: '/entry',
            name: '词条管理',
            icon: 'CopyOutlined',
            authority: ['admin'],
            component: './Exhibition/Entry',
          },
          {
            path: '/management',
            name: '作品管理',
            icon: 'CopyOutlined',
            authority: ['admin', 'user'],
            routes: [
              {
                path: '/management/task',
                name: '创作任务',
                component: './Creation/Task',
              },
              {
                path: '/management/works/a',
                name: '我的作品',
                component: './Creation/Works',
              },
              {
                path: '/management/works/a/:id',
                component: './Creation/Works/AddWorks',
              },
              {
                path: '/management/works/a/:id/:name',
                component: './Creation/Works/AddWorksTwo',
              },
              {
                path: '/management/works/addcheck/:id',
                component: './Revise/Check/AddCheck',
              },
              {
                path: '/management/deliver',
                name: '实体印章派发',
                component: './Creation/Delivery',
              },
              {
                path: '/management/deliver/:id',
                component: './Creation/Delivery/AddDelivery',
              },
            ],
          },
          {
            path: '/revise',
            name: '印稿审改',
            icon: 'CopyOutlined',
            authority: ['admin', 'tch', 'tchs'],
            routes: [
              {
                path: '/revise/check',
                name: '印稿审改',
                component: './Revise/Check',
              },
              {
                path: '/revise/check/addcheck/:id',
                component: './Revise/Check/AddCheck',
              },
              {
                path: '/revise/check/a/:id',
                component: './Creation/Works/AddWorks',
              },
              {
                path: '/revise/check/a/:id/:name',
                component: './Creation/Works/AddWorksTwo',
              },
            ],
          },
          {
            path: '/draft',
            name: '终稿管理',
            icon: 'CopyOutlined',
            authority: ['admin', 'tch'],
            routes: [
              {
                path: '/draft/check',
                name: '待上传',
                component: './Draft/Check',
              },
              {
                path: '/draft/myWorks',
                name: '已上传',
                component: './Creation/Works/Works',
              },
              {
                path: '/draft/myWorks/:id',
                component: './Creation/Works/AddWorks',
              },
              {
                path: '/draft/myWorks/:id/:name',
                component: './Creation/Works/AddWorksTwo',
              },
              {
                path: '/draft/check/addcheck/:id',
                component: './Revise/Check/AddCheck',
              },
              {
                path: '/draft/check/a/:id',
                component: './Creation/Works/AddWorks',
              },
              {
                path: '/draft/check/a/:id/:name',
                component: './Creation/Works/AddWorksTwo',
              },
            ],
          },
          {
            path: '/exhibition',
            name: '实体印章管理',
            icon: 'CopyOutlined',
            authority: ['admin', 'yAdmin'],
            routes: [
              {
                path: '/exhibition/deliver',
                name: '实体印章签收',
                component: './Creation/Delivery',
              },
              {
                path: '/exhibition/deliver/:id',
                component: './Creation/Delivery/AddDelivery',
              },
            ],
          },
          {
            path: '/account',
            name: '账户管理',
            icon: 'CopyOutlined',
            authority: ['admin', 'user', 'tch', 'tchs', 'yAdmin'],
            routes: [
              {
                path: '/account/user_data',
                name: '我的信息',
                component: './Account/MeAbout',
              },
            ],
          },
          {
            path: '/system',
            name: '系统管理',
            icon: 'CopyOutlined',
            authority: ['admin'],
            routes: [
              {
                path: '/system/next',
                name: '印稿代传',
                component: './Creation/Works/Next',
              },
              {
                path: '/system/next/:id',
                component: './Creation/Works/Next',
              },
              {
                path: '/system/next/:id/:name',
                component: './Creation/Works/AddWorksTwo',
              },
              {
                path: '/system/fair',
                name: '展览管理',
                component: './Exhibition/Events',
              },
              {
                path: '/system/regime',
                name: '用户管理',
                component: './System/Regime',
              },
              {
                path: '/system/institution_regime',
                name: '印机构管理',
                component: './System/Institution',
              },
              {
                path: '/system/log',
                name: '日志管理',
                component: './Account/Log',
              },
            ],
          },
          // {
          //   name: 'list.table-list',
          //   icon: 'table',
          //   path: '/list',
          //   component: './ListTableList',
          // },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
